package entity;

import java.util.ArrayList;

public class ground {
    //地皮的编号
    private  int groundNum;
    //地皮的名字
    private String name;
    //地皮的价格
    private int price;
    //地皮以上的房产
    private ArrayList<house> houses;
    //地皮是否拥有 true为拥有 false为不拥有
    //默认为false
    private boolean  isMyself=false;
    //地皮是否用有主人 true为拥有 false为不拥有
    //默认为false
    private boolean isOwner=false;
    //判断是否为地皮
    private boolean isGround=true;
    //地皮拥有者的编号
    private int ownerNum;

    public ground(int groundNum,String name, int price) {
        this.name = name;
        this.groundNum=groundNum;
        this.price = price;
    }

    public boolean isMyself() {
        return isMyself;
    }

    public void setMyself(boolean myself) {
        isMyself = myself;
    }

    public boolean isOwner() {
        return isOwner;
    }

    public void setOwner(boolean owner) {
        isOwner = owner;
    }

    public boolean isGround() {
        return isGround;
    }

    public void setGround(boolean ground) {
        isGround = ground;
    }

    public void setHouses(house houses) {
        this.houses.add(houses);
    }
}
